<?php
/**
 * FunAdmin
 * ============================================================================
 * 版权所有 2017-2028 FunAdmin，并保留所有权利。
 * 网站地址: http://www.FunAdmin.com
 * ----------------------------------------------------------------------------
 * 采用最新Thinkphp8实现
 * ============================================================================
 * Author: yuege
 * Date: 2019/9/21
 */

namespace app\common\controller;

use app\frontend\middleware\ViewNode;
use app\backend\service\AuthService;
use app\BaseController;
use app\common\traits\Curd;
use app\common\traits\Jump;
use fun\addons\Controller;
use think\App;
use think\exception\ValidateException;
use think\facade\Cookie;
use think\facade\Lang;
use think\facade\View;
use think\helper\Str;

class Frontend extends BaseController
{
    protected $middleware = [
    ];

    /**
     * @var
     * 页面大小
     */
    protected $pageSize;
    /**
     * @var
     * 页数
     */
    protected $page;


    public function __construct(App $app)
    {
        parent::__construct($app);
        if (empty(session('user'))) {
            $this->redirect('/login');
        }
    }

    public function initialize()
    {
        parent::initialize(); // TODO: Change the autogenerated stub

    }

}
